package com.liangzhong.model.FameHall.vo
{
	public class FameHallVo
	{
//		
//		<id>1</id>
//			<name>闪电Ⅰ</name>
//			<palyerid_1>1982</palyerid_1>
//			<palyerid_2>1101</palyerid_2>
//			<palyerid_3>408</palyerid_3>
//			<addition>前锋速度增加0.3%</addition>
//			<awardid>1</awardid>
//			<awardtype>2</awardtype>
//			<url>1</url>
		public function FameHallVo()
		{
		}
		/**
		 *荣誉ID 
		 */
		public var honourid:int;
		/**
		 *荣誉名称 
		 */
		public var huname:String;
		/**
		 *球员ID1 
		 */
		public var palyerid_1:int;
		/**
		 *球员ID2 
		 */
		public var palyerid_2:int;
		/**
		 *球员ID3
		 */
		public var palyerid_3:int;
		/**
		 *加成描述 
		 */
		public var descplay:String;
		/**
		 *奖励物品ID 
		 */
		public var id:int;
		/**
		 *奖励物品类型 
		 */
		public var ntype:int ;
		
		/**
		 *buffid 
		 */
		public var buffid:int;
		/**
		 *图标 地址 fameHall_url
		 */
		public var header:String = "1";
		
		
		
		
		/**
		 *是否激活
		 * 0.未激活 1.已激活 
		 */
		public var active:int;
		
		/**
		 *奖励领取状态
		 * 0.未完成 1.已完成 2.已领取 
		 */
		public var status:int;
		
		
		/**
		 *球员 1 
		 */
		public var starid1:int;
		/**
		 *球员 2 
		 */
		public var starid2:int;
		/**
		 *球员 3 
		 */
		public var starid3:int;
		/**
		 *解析 数据 
		 * @param xml
		 * 
		 */
		public function analysis(xml:XML):void
		{
			var len:int = xml.children().length();
			for(var i:int = 0;i < len;i++)
			{
				if(this.hasOwnProperty(xml.child(i).localName()))
					this[xml.child(i).localName()] = xml.child(i);
			}
			palyerid_1 = starid1;
			palyerid_2 = starid2;
			palyerid_3 = starid3;
			starid1 = 0;
			starid2 = 0;
			starid3 = 0;
		}
		/**
		 *解析请求返回数据 
		 * @param $obj
		 * 
		 */
		public function analysisObj($obj:Object):void
		{
			for(var str:String in $obj)
			{
				if(this.hasOwnProperty(str))
					this[str] = $obj[str];
			}
		}
	}
}